package com.ymttest.business.service;

import com.ymatou.userregister.parameter.BindEmailPhoneBean;
import com.ymatou.userregister.service.BindPhoneCall;
import com.ymttest.database.mongo.ULC201406Wapper;

public class UserRegisterService {
	
	public static BindEmailPhoneBean setBindEmailPhoneBean(String loginId, int userid, String phone) throws Exception
	{
		 BindEmailPhoneBean bindPhoneBean = new BindEmailPhoneBean();
	    
		bindPhoneBean.setAction("BindMobile");
		bindPhoneBean.setActionSource("1");
		bindPhoneBean.setLoginId(loginId);
		bindPhoneBean.setLoginPassword("123456");
		bindPhoneBean.setMobile(phone);
		bindPhoneBean.setUserId(userid);
		
		return bindPhoneBean;
	}

	public static BindPhoneCall BindPhone(BindEmailPhoneBean bindEmailPhoneBean) throws Exception
	{
	     BindPhoneCall bindPhoneCall = new BindPhoneCall();
	    
		bindPhoneCall.setData(false,bindEmailPhoneBean);
		bindPhoneCall.callService();
		
		return bindPhoneCall;
	}
}
